std::basic_ostream::put
From Cppreference
< cpp | io | basic ostream
| C++ Standard Library | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Input/output library | ||||||||||||||||||||||||||||||||||||||||||||||||
| std::basic_ostream | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
| basic_ostream& put( char_type ch );
| ||
Writes character ch to the output stream. If good() != true, setstate(failbit) is called and the function returns. If inserting fails, setstate(badbit) is called and the function returns.
Contents |
Parameters
| ch | - | character to write |
Return value
*this
Example
| This section is incomplete |
See also
| inserts formatted data (public member function) | |
| inserts blocks of characters (public member function) | |